package com.gdcp.controller.backend;

import com.gdcp.beans.User;
import com.gdcp.config.RequestHolder;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */
@Component
public class CommonCode {

    Map<String,Object> getList(int pageSize, int pageNumber, String sortName, String sortOrder){
        Map<String, Object> model=new HashMap<>();
        int a=(pageNumber-1)*pageSize;
        int b=pageSize;
        model.put("a", a);
        model.put("b", b);
        model.put("sortName", sortName);
        model.put("sortOrder", sortOrder);
        return model;
    }
}
